#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    static int i=1;
    QString str ="F:/workspace/feiq/zone/image/%1.jpg";
    QPixmap pixmap(str.arg(i));
    ui->video_label->setPixmap(pixmap);
    ui->video_label->show();

    i++;
    i=i%5;
}

void MainWindow::on_connect_pushButton_clicked()
{

}
